package com.xbh.management.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xbh.management.model.ManDepartment;
import com.xbh.management.model.ManUser;
import netscape.javascript.JSObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: management-center
 * @description:
 * @author: 许宝华
 * @create: 2021-08-30 14:27
 */

public interface DepartmentService extends IService<ManDepartment> {
    IPage<ManDepartment> list(Page<ManDepartment> page, ManDepartment manDepartment);

    List<ManDepartment> queryAllDept();

    int delCustomerByid(Long customerId);

    int saveCustomer(ManDepartment customer);

    int deleteByCusIds(String customerIds);

    ManDepartment selectCustomerById(Long customerId);

    int updateCustomerById(ManDepartment customer);

    String exportCustomer(List<ManDepartment> customerList) throws Exception;

    List<ManDepartment> selectCustomer(String customerIds);

    Page<ManUser> selectUserByDepartmentId(Page<ManUser> page,Long departmentId);

    JSONObject queryUserByDept(Long userId);
}
